import React from 'react'
import ReactDOM from 'react-dom'
import {createStore} from 'redux'
import {Provider, connect} from 'react-redux'
import TodoList from './TodoList'
import store from './store'
// todo Provider 包含的组件 下面的子组件都有接受到props 中的数据
// 子组件需要connect

const App = (
    //子组件都能获取 到store内容
    <Provider store={store}>
        <TodoList/>
    </Provider>
);

ReactDOM.render(
    App,
    document.getElementById('root')
)